package org.kk.sentinel.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.kk.model.result.GlobalResult;
import com.kk.model.result.User;

/**
 * the type of springcloud-alibaba
 *
 * <p>
 * .
 *
 * @author 铁甲小宝
 * @date 2023-02-11
 */

public class CustomBlockHandler {

    public static GlobalResult handlerException(int p1, BlockException exception){
        return new GlobalResult("444", "FAILED",new User("sentinel", 18));
    }
}
